python rge.py